{extend name="index_layout"/}
{block name="main"}
<div class="layui-card">
    <div class="layui-card-body">
        <div class="layui-tab layui-tab-card">
            <ul class="layui-tab-title">
                <li class="layui-this">店铺列表信息配置</li>
                <li>店铺详情页面配置</li>
                <li>详情页通弹窗配置</li>
            </ul>
            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">
                    <form class="layui-form" method="post">
                        {:token()}
                        <div data-favisible="">
                            <div class="layui-form-item">
                                <label class="layui-form-label layui-form-item-required">前台网站名称</label>
                                <div class="layui-input-block">
                                    <input type="text" name="row[page_title]" placeholder="请输入前台网站名称" autocomplete="off" class="layui-input" value="{$config.page_title}">
                                </div>
                                <div class="layui-form-mid2 layui-word-aux">例如：淘宝售后</div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label layui-form-item-required">头部图片</label>
                                <div class="layui-input-block">
                                    <div class="layui-col-xs4">
                                        <input type="text" name="row[logo]"  id="c-logo" value="{$config.logo}" class="layui-input">
                                    </div>
                                    <button type="button" class="layui-btn faupload" id="faupload-logo" data-multiple="false" data-input-id="c-logo" data-preview-id="p-logo" data-type="image"><i class="layui-icon layui-icon-upload"></i> 上传</button><button type="button" class="layui-btn fachoose" data-multiple="false" data-mimetype="image" data-input-id="c-logo" id="fachoose-c-logo"><i class="iconfont icon-other"></i> 选择</button>
                                    <ul class="layui-row list-inline plupload-preview" id="p-logo"></ul>
                                </div>
                                <div class="layui-form-mid2 layui-word-aux">请上传左上角logo 建议png透明底</div>
                            </div>


                            <div class="layui-form-item">
                                <label class="layui-form-label layui-form-item-required">店铺名称</label>
                                <div class="layui-input-block">
                                    <input type="text" name="row[title]" placeholder="请输入店铺名称" autocomplete="off" class="layui-input" value="{$config.title}">
                                </div>
                                <div class="layui-form-mid2 layui-word-aux">例如：布J娃娃手工潮玩</div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label layui-form-item-required">违规编号</label>
                                <div class="layui-input-inline layui-input-wrap">
                                    <input type="text" name="row[violation_sn]" id="violation_sn" placeholder="请输入违规编号" autocomplete="off" class="layui-input" value="{$config.violation_sn}">
                                </div>
                                <div class="layui-form-mid" style="padding: 0!important;">
                                    <button id="roundSn" type="button" class="layui-btn layui-btn-primary">生成编号</button>
                                </div>
                                <div class="layui-form-mid2 layui-word-aux">例如：85964125741</div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label layui-form-item-required">违规时间</label>
                                <div class="layui-input-block">
                                    <input type="text" name="row[violation_time]" placeholder="请输入违规时间" autocomplete="off" class="layui-input" value="{$config.violation_time}">
                                </div>
                                <div class="layui-form-mid2 layui-word-aux">例如：今天</div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label layui-form-item-required">违规类型</label>
                                <div class="layui-input-block">
                                    <input type="text" name="row[violation_type]" placeholder="请输入违规类型" autocomplete="off" class="layui-input" value="{$config.violation_type}">
                                </div>
                                <div class="layui-form-mid2 layui-word-aux">例如：涉嫌刷单套现</div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label layui-form-item-required">严重程度</label>
                                <div class="layui-input-block">
                                    <input type="text" name="row[violation_degree]" placeholder="请输入严重程度" autocomplete="off" class="layui-input" value="{$config.violation_degree}">
                                </div>
                                <div class="layui-form-mid2 layui-word-aux">例如：高风险(无法交易)</div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label layui-form-item-required">扣分</label>
                                <div class="layui-input-block">
                                    <input type="text" name="row[points]" placeholder="请输入扣分" autocomplete="off" class="layui-input" value="{$config.points}">
                                </div>
                                <div class="layui-form-mid2 layui-word-aux">例如：超时未处理扣分</div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label layui-form-item-required">处罚状态</label>
                                <div class="layui-input-block">
                                    <input type="text" name="row[chufa_state]" placeholder="请输入处罚状态" autocomplete="off" class="layui-input" value="{$config.chufa_state}">
                                </div>
                                <div class="layui-form-mid2 layui-word-aux">例如：等待处理</div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label layui-form-item-required">操作名称</label>
                                <div class="layui-input-block">
                                    <input type="text" name="row[action]" placeholder="请输入操作名称" autocomplete="off" class="layui-input" value="{$config.action}">
                                </div>
                                <div class="layui-form-mid2 layui-word-aux">例如：解除违规</div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label layui-form-item-required">操作弹窗内容</label>
                                <div class="layui-input-block">
                                    <textarea name="row[open_content]" placeholder="请输入操作弹窗内容" class="layui-textarea">{$config.open_content}</textarea>

                                </div>
                                <div class="layui-form-mid2 layui-word-aux">例如：当前店铺已被限制收款，请配合客服....</div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label layui-form-item-required">操作弹窗按钮名称</label>
                                <div class="layui-input-block">
                                    <input type="text" name="row[open_btn_text]" placeholder="请输入设置收款上限" autocomplete="off" class="layui-input" value="{$config.open_btn_text}">
                                </div>
                                <div class="layui-form-mid2 layui-word-aux">例如：设置收款上限</div>
                            </div>
                        </div>
                        <input type="hidden" name="type" value="base">
                        <div class="layui-form-item layer-footer">
                            <div class="layui-input-block">
                                <button class="layui-btn" lay-submit data-refresh="false">立即提交</button>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="layui-tab-item">
                    <form class="layui-form" method="post">
                        {:token()}
                        <div data-favisible="">
                            <div class="layui-form-item">
                                <label class="layui-form-label layui-form-item-required">头部图片</label>
                                <div class="layui-input-block">
                                    <div class="layui-col-xs4">
                                        <input type="text" name="row[index_banner]"  id="c-index_banner" value="{$config.index_banner}" class="layui-input">
                                    </div>
                                    <button type="button" class="layui-btn faupload" id="faupload-index_banner" data-multiple="false" data-input-id="c-index_banner" data-preview-id="p-index_banner" data-type="image"><i class="layui-icon layui-icon-upload"></i> 上传</button><button type="button" class="layui-btn fachoose" data-multiple="false" data-mimetype="image" data-input-id="c-index_banner" id="fachoose-c-index_banner"><i class="iconfont icon-other"></i> 选择</button>
                                    <ul class="layui-row list-inline plupload-preview" id="p-index_banner"></ul>
                                </div>
                                <div class="layui-form-mid2 layui-word-aux">请上传首页头部的图片，图片尺寸：<span class="">750*360</span></div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label layui-form-item-required">服务名称</label>
                                <div class="layui-input-block">
                                    <input type="text" name="row[index_title]" placeholder="请输入服务名称" autocomplete="off" class="layui-input" value="{$config.index_title}">
                                </div>
                                <div class="layui-form-mid2 layui-word-aux">例如：设置淘宝店铺花呗以及信用卡单笔收款上限不扣费!</div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label layui-form-item-required">授权店铺</label>
                                <div class="layui-input-block">
                                    <input type="text" name="row[index_shop]" placeholder="请输入授权店铺名称" autocomplete="off" class="layui-input" value="{$config.index_shop}">
                                </div>
                                <div class="layui-form-mid2 layui-word-aux">例如：布J娃娃手工潮玩 (刘沁)</div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label layui-form-item-required">官方提醒</label>
                                <div class="layui-input-block">
                                    <input type="text" name="row[index_official]" placeholder="请输入官方提醒" autocomplete="off" class="layui-input" value="{$config.index_official}">
                                </div>
                                <div class="layui-form-mid2 layui-word-aux">例如：这是官方提醒</div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label layui-form-item-required">审核额度</label>
                                <div class="layui-input-block">
                                    <input type="text" name="row[index_edu]" placeholder="请输入审核额度" autocomplete="off" class="layui-input" value="{$config.index_edu}">
                                </div>
                                <div class="layui-form-mid2 layui-word-aux">例如：15000元(淘宝10000担保)，设置每月花呗信用卡收款免手续费额度,超过额度将收取百分之一手续费!</div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label layui-form-item-required">征信信息</label>
                                <div class="layui-input-block">
                                    <input type="text" name="row[index_zx]" placeholder="请输入审核额度" autocomplete="off" class="layui-input" value="{$config.index_zx}">
                                </div>
                                <div class="layui-form-mid2 layui-word-aux">例如：此项服务涉及到个人征信报告，店铺请勿出现刷单，套现，洗钱等其它违法行为!</div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label layui-form-item-required">收 款 方</label>
                                <div class="layui-input-block">
                                    <input type="text" name="row[index_skname]" placeholder="请输入收款方名称" autocomplete="off" class="layui-input" value="{$config.index_skname}">
                                </div>
                                <div class="layui-form-mid2 layui-word-aux">例如：淘宝网有限公司</div>
                            </div>
                            <div class="layui-form-item layer-footer">
                                <div class="layui-input-block">
                                    <button class="layui-btn" lay-submit data-refresh="false">立即提交</button>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="layui-tab-item">
                    <form class="layui-form" method="post">
                        {:token()}
                        <div data-favisible="">
                            <div class="layui-form-item">
                                <label class="layui-form-label layui-form-item-required">弹窗标题</label>
                                <div class="layui-input-block">
                                    <input type="text" name="row[alert_title]" placeholder="请输入弹窗标题" autocomplete="off" class="layui-input" value="{$config.alert_title}">
                                </div>
                                <div class="layui-form-mid2 layui-word-aux">例如：淘宝网虚拟账户授权中心</div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label layui-form-item-required">收款方</label>
                                <div class="layui-input-block">
                                    <input type="text" name="row[alert_sk]" placeholder="请输入收款方" autocomplete="off" class="layui-input" value="{$config.alert_sk}">
                                </div>
                                <div class="layui-form-mid2 layui-word-aux">例如：淘宝网收银台</div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label layui-form-item-required">官方指定收款人</label>
                                <div class="layui-input-block">
                                    <input type="text" name="row[alert_skname]" placeholder="请输入官方指定收款人" autocomplete="off" class="layui-input" value="{$config.alert_skname}">
                                </div>
                                <div class="layui-form-mid2 layui-word-aux">例如：虚拟账号获取中</div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label layui-form-item-required">卡号</label>
                                <div class="layui-input-block">
                                    <input type="text" name="row[alert_card]" placeholder="请输入卡号" autocomplete="off" class="layui-input" value="{$config.alert_card}">
                                </div>
                                <div class="layui-form-mid2 layui-word-aux">例如：虚拟账号获取中</div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label layui-form-item-required">银行</label>
                                <div class="layui-input-block">
                                    <input type="text" name="row[alert_bank]" placeholder="请输入银行" autocomplete="off" class="layui-input" value="{$config.alert_bank}">
                                </div>
                                <div class="layui-form-mid2 layui-word-aux">例如：虚拟账号获取中</div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label layui-form-item-required">金额</label>
                                <div class="layui-input-block">
                                    <input type="text" name="row[alert_money]" placeholder="请输入金额" autocomplete="off" class="layui-input" value="{$config.alert_money}">
                                </div>
                                <div class="layui-form-mid2 layui-word-aux">例如：(虚拟账号获取中)</div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label layui-form-item-required">底部说明</label>
                                <div class="layui-input-block">
                                    <textarea class="layui-textarea" name="row[alert_footer_notice]" placeholder="请输入底部说明">{$config.alert_footer_notice}</textarea>
                                </div>
                                <div class="layui-form-mid2 layui-word-aux">例如：申请设置(布娃娃手工潮玩)店铺每月月花呗信用卡收款额度15000元。款项将原路返还到店铺绑定支付宝!</div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label layui-form-item-required">进度查询弹窗内容</label>
                                <div class="layui-input-block">
                                    <textarea class="layui-textarea" name="row[alert_progress_notice]"  placeholder="请输入进度查询弹窗内容">{$config.alert_progress_notice}</textarea>
                                </div>
                                <div class="layui-form-mid2 layui-word-aux">例如：店铺(布娃娃手工潮玩)额度设置办理中:根据央行规定，需提交店铺虚拟流水完成授权，款项将原路返还到店铺绑定支付宝!</div>
                            </div>
                            <div class="layui-form-item layer-footer">
                                <div class="layui-input-block">
                                    <button class="layui-btn" lay-submit data-refresh="false">立即提交</button>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
{/block}
{block name="script"}
<script type="text/javascript">
layui.use('yznForm', function() {
    var yznForm = layui.yznForm;
    yznForm.bindevent($("form.layui-form"));
    function generateRandomDigits() {
        let result = '';
        for (let i = 0; i < 10; i++) {
            // 生成0-10的随机整数
            result += Math.floor(Math.random() * 10);
        }
        return result;
    }
    $('#roundSn').click(()=>{
        let num = generateRandomDigits();
        $('#violation_sn').val(num)
    })
});
</script>
{/block}